import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'
import RootRouter from '../../router/RootRouter'

// /home  /home   /home
 
export default class Index extends Component {
    render() {
        const { routeChildren } = this.props
        return (
            <div className='h100 home'>
                <main>
                    <RootRouter routes = { routeChildren }/>
                </main>
                <footer className='footer'>
                    <NavLink to="/home/homes">首页</NavLink>
                    <NavLink to="/home/my">我的</NavLink>
                    <NavLink to="/home/car">购物车</NavLink>
                </footer>
            </div>
        )
    }
}
